package view;
/**
 *
 * @author zhaoyingxi
 */
import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Rectangle;
import javax.swing.*;
import java.awt.event.FocusEvent;
import java.awt.event.FocusAdapter;
import Control.AirPortInfo;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class ViewAirPortInfoViewT extends JFrame {
    public ViewAirPortInfoViewT() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        this.setTitle("AirPort Info");
        getContentPane().setLayout(null);
        this.setResizable(false);
        jLabel2.setText("TAX");
        jLabel2.setBounds(new Rectangle(251, 18, 42, 15));
        jLabel3.setText("GST");
        jLabel3.setBounds(new Rectangle(250, 53, 42, 15));
        jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
        jLabel1.setText(AirPortInfo.getHead());
        jLabel1.setBounds(new Rectangle(149, 46, 83, 19));
        jLabel4.setText(AirPortInfo.getTAX());
        jLabel4.setBounds(new Rectangle(302, 18, 78, 15));
        jLabel5.setText(AirPortInfo.getGST());
        jLabel5.setBounds(new Rectangle(302, 53, 78, 15));
        jTextArea1.setText(AirPortInfo.getContent());
        jTextArea1.setBounds(new Rectangle(59, 75, 293, 194));
        jTextArea1.setEditable(false);
        this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
        this.getContentPane().add(jLabel2);
        this.getContentPane().add(jTextField2);
        this.getContentPane().add(jLabel3);
        this.getContentPane().add(jLabel1);
        this.getContentPane().add(jLabel4);
        this.getContentPane().add(jLabel5);
        this.getContentPane().add(jTextArea1);
        this.setSize(400,350);
        this.setVisible(true);
        //this.setSize(this.getMaximumSize());  //Maximum Windows
    }
    JLabel jLabel2 = new JLabel();
    JTextField jTextField2 = new JTextField();
    JLabel jLabel3 = new JLabel();
    JLabel jLabel1 = new JLabel();
    JLabel jLabel4 = new JLabel();
    JLabel jLabel5 = new JLabel();
    JTextArea jTextArea1 = new JTextArea();
    public static void main(String[] args){
        ViewAirPortInfoViewT a = new ViewAirPortInfoViewT();
        a.setVisible(true);
    }
}

